package com.demo.controller;

import com.demo.entity.Rotationimg;
import com.demo.service.RotationimgService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Rotationimg)表控制层
 *
 * @author 李浩
 * @since 2020-11-27 16:35:30
 */
@RestController
@RequestMapping("rotationimg")
public class RotationimgController {
    /**
     * 服务对象
     */
    @Autowired
    private RotationimgService rotationimgService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Rotationimg selectOne(Integer id) {
        return this.rotationimgService.queryById(id);
    }

}